﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="GoodsShippingTypeManagement.aspx.cs" Inherits="NetDon.OA.Portal.Admin.GoodsShippingTypeManagement" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript" type="text/javascript">

        function OpenEditPage(strOID) {
            $dialog('<%=ResolveUrl( "~/Admin/GoodsShippingTypeEdit.aspx")%>?OID=' + strOID, { width: 340, height: 150 }, function (result) {
                if (result) {
                    $get('<%=btnRefresh.ClientID %>').click();
                }
            });
        }

        function OpenEditPageNew() {
            $dialog('<%=ResolveUrl( "~/Admin/GoodsShippingTypeEdit.aspx")%>', { width: 340, height: 150 }, function (result) {
                if (result) {
                    $get('<%=btnRefresh.ClientID %>').click();
                }
            });
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div style="float: left; margin-left: 10px;">
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <NetDon:GridView ID="gridCurrency" runat="server" OnRowDataBound="gridItem_RowDataBound"
                                AutoGenerateColumns="false" OnRowCommand="gridItem_RowCommand">
                                <Columns>
                         
                                        <NetDon:TemplateField HeaderText="客户编号" SortExpression="CustomerId">
                                        <ItemTemplate>
                                            <%#GetClientCode(Eval("CustomerId"))%>
                                        </ItemTemplate>
                                    </NetDon:TemplateField>
                                        <NetDon:TemplateField HeaderText="客户名称" SortExpression="CustomerId">
                                        <ItemTemplate>
                                            <%#GetClientName(Eval("CustomerId"))%>
                                        </ItemTemplate>
                                    </NetDon:TemplateField>

                                    <NetDon:TemplateField HeaderText="承运货物" SortExpression="GoodsShippedTypeId">
                                        <ItemTemplate>
                                            <%#GetDictionaryItemName(Eval("GoodsShippedTypeId"))%>
                                        </ItemTemplate>
                                    </NetDon:TemplateField>
                                    <NetDon:TemplateField HeaderText="操作">
                                        <ItemTemplate>
                                            <asp:ImageButton ID="btnDelete" runat="server" SkinID="Delete" CommandName="DeleteItem"
                                                CommandArgument='<%#Eval("Id") %>' CausesValidation="false" />&nbsp;&nbsp;<%--<asp:ImageButton
                                                    ID="btnModify" SkinID="Modify" runat="server" CausesValidation="false" />--%>
                                            <NetDon:ConfirmButtonExtender runat="server" TargetControlID="btnDelete" ConfirmText="确认删除？"
                                                ID="ctl01" Enabled="True">
                                            </NetDon:ConfirmButtonExtender>
                                        </ItemTemplate>
                                    </NetDon:TemplateField>
                                </Columns>
                            </NetDon:GridView>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div style="margin-top: 10px;">
                                <asp:Button ID="btnAddItem" runat="server" Text="新增" OnClientClick="OpenEditPageNew(); return false;">
                                </asp:Button>
                                <asp:Button ID="btnRefresh" runat="server" SkinID="Hidden" OnClick="btnRefresh_Click">
                                </asp:Button>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
